package com.xmy.erp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 微信绑定
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
@TableName("wechars_bind")
@ApiModel(value = "WecharsBind对象", description = "微信绑定")
public class WecharsBind implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String unionid;

    private String openid;

    private String phone;

    private Long studentId;

    @ApiModelProperty("1公众号，2是小程序")
    private Integer type;

    private LocalDateTime createdAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "WecharsBind{" +
            "id=" + id +
            ", unionid=" + unionid +
            ", openid=" + openid +
            ", phone=" + phone +
            ", studentId=" + studentId +
            ", type=" + type +
            ", createdAt=" + createdAt +
        "}";
    }
}
